#ifndef SYSTEMCONTROLLER_H
#define SYSTEMCONTROLLER_H

#include <QObject>

/**
 * @brief The SystemController class 用于控制QML界面中的数值变化
 */
class SystemController : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString baz READ baz WRITE setBaz NOTIFY bazChanged)

public:
    explicit SystemController(QObject *parent = nullptr);

    //read mBaz
    QString baz() const { return mBaz;}

    //write mBaz
    void setBaz(const QString &baz){
        if (baz == mBaz)
            return;

        mBaz = baz;
        emit bazChanged();
    }
signals:
    void bazChanged();

private:
    QString mBaz;

};

#endif // SYSTEMCONTROLLER_H
